<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>物资管理/社交</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-account.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/social.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6" onMouseOver="javascript:changeto();" onmouseout="javascript:changeback();">
          <tr>
            <td width="4%" class="tdClass">序号</td>
            <td width="9%" class="tdClass">会计月度</td>
            <td width="4%" class="tdClass">月份</td>
            <td width="10%" class="tdClass">月支出总额</td>
            <td width="10%" class="tdClass">预算总额</td>
            <td width="10%" class="tdClass">月超支金额</td>
            <td width="7%" class="tdClass">是否超支</td>
            <td width="5%" class="tdClass">次数</td>
            <td width="20%" class="tdClass">描述</td>
            <td width="10%" class="tdClass">基本操作</td>
            <td width="*" class="tdClass"></td>
          </tr>
          <logic:notEmpty name="socialList">
          <% int i = 0; %>
            <logic:iterate id="var" name="socialList">
            <% i++; %>
              <tr>
                <c:if test="${var.socialDate=='合计' || var.socialState=='超支'}">
                <td class="STYLE42"><%=i %></td>
                <td class="STYLE42"><bean:write name="var" property="socialDate" /></td>
                <td class="STYLE42"><b><bean:write name="var" property="socialMonth" /></b></td>
                <td class="STYLE43"><bean:write name="var" property="socialExpense" />￥&nbsp;</td>
                <td class="STYLE43"><bean:write name="var" property="socialBudget" />￥&nbsp;</td>
                <td class="STYLE43"><bean:write name="var" property="overspend" />&nbsp;</td>
                <td class="STYLE42"><bean:write name="var" property="socialState" /></td>
                <td class="STYLE42"><bean:write name="var" property="num" /></td>
                <td class="STYLE41">&nbsp;<font color="red"><bean:write name="var" property="socialDesc" /></font></td>
                <c:if test="${var.socialState=='超支'}">
                <td class="STYLE22"><a href="social.do?method=listSocialOfMonthByPage&socialDate=${var.socialDate}">明细</a>&nbsp;
                <a href="social.do?method=editSocialBudget&socialDate=${var.socialDate}">编辑</a></td>
                <td class="STYLE42">&nbsp;</td>
                </c:if>
                <c:if test="${var.socialState!='超支'}">
                <td class="STYLE42">&nbsp;&nbsp;</td>
                <td class="STYLE42">&nbsp;</td>
                </c:if>    
                </c:if>
                <c:if test="${var.socialDate!='合计' && var.socialState!='超支'}">
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE12"><bean:write name="var" property="socialDate" /></td>
                <td class="STYLE12"><b><bean:write name="var" property="socialMonth" /></b></td>
                <td class="STYLE13"><bean:write name="var" property="socialExpense" />￥&nbsp;</td>
                <td class="STYLE13"><bean:write name="var" property="socialBudget" />￥&nbsp;</td>
                <td class="STYLE13"><bean:write name="var" property="overspend" />&nbsp;</td>
                <td class="STYLE12"><bean:write name="var" property="socialState" /></td>
                <td class="STYLE12"><bean:write name="var" property="num" /></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="socialDesc" /></td>
                <td class="STYLE12"><a href="social.do?method=listSocialOfMonthByPage&socialDate=${var.socialDate}">明细</a>&nbsp;
                <a href="social.do?method=editSocialBudget&socialDate=${var.socialDate}">编辑</a></td>
                <td class="STYLE13"></td>
                </c:if>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../no_page.jsp"%>
</table>
</html:form>
</body>
</html>

